<form action="/backend/slide_show/<?php echo isset($slide_show) ? 'update' : 'insert'; ?>" method="post">
    <input type="hidden" name="id" value="<?php echo isset($slide_show) ? $slide_show->id : ''; ?>"/>
    <div class="form-row">
	<label for="type">关联类型</label>
	<select name="type">
	    <?php foreach ($types as $key => $type): ?>
    	    <option value="<?php echo intval($key + 1); ?>"<?php echo $key + 1 == (isset($slide_show) ? $slide_show->type : 0) ? ' selected="selected"' : ''; ?>>
		    <?php echo $type; ?>
    	    </option>
	    <?php endforeach; ?>
	</select>
    </div>
    <div class="form-row">
	<label for="parent">关联ID</label>
	<select name="parent"><option value="0">--</option></select>
    </div>
    <div class="form-row">
	<label for="image">图片</label>
	<input type="text" name="image" value="<?php echo isset($slide_show) ? $slide_show->image : '0'; ?>"/>
    </div>
    <div class="form-row">
	<label for="link">链接</label>
	<input type="text" class="text" name="link" value="<?php echo isset($slide_show) ? $slide_show->link : ''; ?>"/>
    </div>
    <div class="form-row">
	<label for="description_zh">描述（中文）</label>
	<textarea name="description_zh"><?php echo isset($slide_show) ? $slide_show->description_zh : ''; ?></textarea>
    </div>
    <div class="form-row">
	<label for="description_fr">描述（法文）</label>
	<textarea name="description_fr"><?php echo isset($slide_show) ? $slide_show->description_fr : ''; ?></textarea>
    </div>
    <div class="form-row">
	<label for="description_en">描述（英文）</label>
	<textarea name="description_en"><?php echo isset($slide_show) ? $slide_show->description_en : ''; ?></textarea>
    </div>
    <div class="form-button">
	<input type="submit" class="submit" value="提交"/>
    </div>
</form>